import Layout from '@/layout'
import RouteButtonsBuilder from '@/framework/infra/router/RouterButtonsBuilder'
import TableButtonType from "@/framework/constant/TableButtonType";

export default [
  {
    path: '/cmt',
    component: Layout,
    meta: {title: '评价维护', icon: 'el-icon-s-help'},
    children: [
      {
        path: 'comment-follow-up',
        component: () => import('@/feature/cmt/app/comment-follow-up/index'),
        meta: {title: '评价维护', icon: 'table'},
        buttons: RouteButtonsBuilder.builder('cmt:comment-follow-up', '评价维护').r({listName: 'list'}).view('list').addButtons([
          {
            handler: 'create',
            name: 'create',
            type: TableButtonType.TOOLBAR,
            label: '新建评价维护',
            icon: 'el-icon-plus'
          },
          {
            handler: 'import',
            name: 'save-click-farm',
            type: TableButtonType.TOOLBAR,
            label: '签收批量导入',
            buttonType: 'danger',
            icon: 'el-icon-upload'
          },
          {
            handler: 'update',
            name: 'update',
            type: TableButtonType.ROW,
            label: '修改',
            icon: 'el-icon-edit'
          },
          {
            handler: 'remove',
            name: 'remove',
            type: TableButtonType.ROW,
            label: '删除',
            buttonType: 'danger',
            icon: 'el-icon-delete'
          },
          {
            handler: 'save-buyer-show',
            name: 'save-buyer-show',
            type: TableButtonType.ROW,
            label: '买家秀',
            buttonType: 'danger',
            icon: 'el-icon-delete'
          },
          {
            handler: 'append-comment',
            name: 'append-comment',
            type: TableButtonType.ROW,
            label: '追评',
            buttonType: 'danger',
            icon: 'el-icon-delete'
          },
          {
            handler: 'save-click-farm',
            name: 'save-click-farm',
            type: TableButtonType.ROW,
            label: '刷单',
            buttonType: 'danger'
          },
          {
            handler: 'updateFollowSignTime',
            name: 'save-click-farm',
            type: TableButtonType.ROW,
            label: '跟进签收时间',
            buttonType: 'danger'
          }
        ])
          .build()
      }
      // #appendSpot# 生成工具用，不要删了
    ]
  }
]
